from sqlalchemy import Column, CHAR, String, Integer, DateTime
from config.database import Base


class KhUser(Base):
    """
    考勤用户花名册表
    """

    __tablename__ = 'kh_user'

    id = Column(Integer, primary_key=True, autoincrement=True, nullable=False, comment='序号')
    user_id = Column(String(20), nullable=False, comment='用户编号')
    user_name = Column(String(50), nullable=False, comment='用户姓名')
    phone_number = Column(String(50), nullable=True, comment='联系电话')
    department = Column(String(50), nullable=True, comment='所属部门')
    person_id = Column(String(50), nullable=True, comment='身份证号码')
    employment_date = Column(String(50), nullable=True, comment='入职时间')
    del_flag = Column(CHAR(1), nullable=True, comment='删除标志')
    create_by = Column(String(64), nullable=True, comment='创建者')
    create_time = Column(DateTime, nullable=True, comment='创建时间')
    update_by = Column(String(64), nullable=True, comment='更新者')
    update_time = Column(DateTime, nullable=True, comment='更新时间')
    remark = Column(String(500), nullable=True, comment='备注')



